package com.spzx.order.mapper;

import com.spzx.model.entity.order.OrderInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Project: spzx-parent
 * Package: com.spzx.order.mapper
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2024/5/4 下午10:23
 */
@Mapper
public interface OrderInfoMapper {
    void save(OrderInfo orderInfo);

    //根据订单id获取订单信息
    OrderInfo getById(Long orderId);

    //查询订单信息
    List<OrderInfo> findUserPage(Long userId, Integer orderStatus);

    //获取订单信息
    OrderInfo getByOrderNo(String orderNo);

    //更新订单状态
    void updateById(OrderInfo orderInfo);
}
